package com.guli.mall.wms.feign;

import com.guli.common.utils.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/*
 * @Author 罗俊
 * @date 2020/11/25 - 5:55 下午
 *
 */
@FeignClient(name="order-service")
public interface OrderFeignClient {


    /**
     * 根据订单id （不是订单号）获取订单
     * @param id
     * @return
     */
    @GetMapping("/order/order/info/{id}")
    @ApiOperation("根据id获取Order")
    public R getOrderByOrderId(@PathVariable("id") Long id) ;
}
